
function initSizing() {

/*
    $("#wrapper").width($(document).width()-20);
    $("#wrapper").height(670);
    $("#search_terms").width($("#search").width()-60);
    $("#logo").height($("#search").height());
    var width = $("#question").width()-2;
    $("#question").width(width);
    $("#id-howdoi-select").width($("#question").width()-170);
    var maxHeight = $("#wrapper").height()-$("#search").height()-$("#question").height()-20;
    $("#left-wrapper").height(maxHeight);
    $("#main").height(maxHeight);
    var leftHeight = $("#left-wrapper").height()-($("#pop").height()*3)-$("#gold").height()-50;
    $(".left-nav").height(leftHeight);
    $("#main-display-div").height($("#main").height()-$("#pop").height()-12);
*/

    $("#wrapper").width($(document).width()-20);
    //$("#wrapper").height(670);
    //$("#search_terms").width($("#search").width()-60);
    //$("#logo").height($("#search").height());
    var width = $("#question").width()-2;
    $("#question").width(width);
    $("#id-howdoi-select").width($("#question").width()-170);
    //var maxHeight = 483; //670 (wrapper height) - 155 (search height) - 52 (question height) - 20 to be safe
    //$("#left-wrapper").height(maxHeight);
    //$("#main").height(maxHeight);
    var leftHeight = 380 - $("#gold").height(); //670 (frame height) - 3 * 17 (h3 height) - golds dynamic height - 50 to be safe
    $(".left-nav").height(leftHeight);
    //$("#main-display-div").height(maxHeight-29); //main height - 17 (h3 height) - 12 to be safe

    $("#pop-tree").treeview();
    $("#titles-tree").treeview();
    $("#subjects-tree").treeview();

    $("#subjects-tree").slideUp();
    $("#titles-tree").slideUp();
    $("#trials-tree").slideUp();
  }

